﻿using FactoryMethodPattern.Product;

namespace FactoryMethodPattern.Factory
{
    internal class BYDFactory : BaseCreator
    {
        public override BaseProduct CreateProduct()
        {
            var bydProduct = new BYDProduct() { Name = nameof(BYDProduct) };
            bydProduct.Prepare();
            bydProduct.CreateEngine();
            bydProduct.CreateWheel();
            bydProduct.CreateComplete();
            return bydProduct;
        }
    }
}